home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000157_dbecker@cpicorp.com_Thu Dec 5 16:54:33 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
3KB
|
68 lines
Article: 13938 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!arclight.uoregon.edu!newshub.sdsu.edu!newspeer.cts.com!feed2-in.uncensored-news.com!stl-feed.news.verio.net!news.cpicorp.com!not-for-mail
From: Derek Chen-Becker <dbecker@cpicorp.com>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with stdout and stderr for kermit95
Date: Thu, 05 Dec 2002 15:36:33 -0600
Organization: CPI Corporation
Lines: 43
Message-ID: <asogrg$sdk$1@cpimail.cpicorp.com>
References: <aso6v9$kr9$1@cpimail.cpicorp.com> <aso84e$16t$1@watsol.cc.columbia.edu> <aso8ff$1t3$1@cpimail.cpicorp.com> <aso9fh$2m5$1@watsol.cc.columbia.edu>
NNTP-Posting-Host: dbecker-ld.cpicorp.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: cpimail.cpicorp.com 1039124145 29108 131.100.250.5 (5 Dec 2002 21:35:45 GMT)
X-Complaints-To: abuse@cpicorp.com
NNTP-Posting-Date: Thu, 5 Dec 2002 21:35:45 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: en-us, en
In-Reply-To: <aso9fh$2m5$1@watsol.cc.columbia.edu>
X-Enigmail-Version: 0.70.0.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13938
Frank da Cruz wrote:
> As for searching the \&@[] array, it might be better to explain what your
> goal is and we can suggest ways of achieving it.
>
> - Frank
I appreciate your help on this. Basically, I'm written a hotfolder
script using kermit. The client is a windows machine and the server is a
unix box running IKSD out of inetd. The script takes a command line
argument of a configuration file that it reads to determine the remote
server, username, password, and the location of various folders used for
the transfer. I originally developed the script on a unix box, so I
didn't need to specify the "-# 64" arg to get output on stdout, so I
figured for k95 I just need to shift my index in \&@ over by two. Is
there a better way to get command line arguments?
On a not completely unrelated note, I was hoping to put purge
functionality into the hotfolder script. If a file can't be sent for
more that 24 hours, I would like to move it from the hot folder to a
"failed" folder. Is there a way in kermit to get a listing of files in a
way that I could determine which files are older than "x" hours? The
directory command doesn't have time specifiers, and I couldn't find a
function that would give me a file's last modified time based on a
filename. I would really like to keep it inside the kermit script to
simplify the external scheduling program.
Thanks,
Derek
--
----------------------------------------------------------------------
Derek Chen-Becker
Senior Network Engineer
CPI Corp, Inc.
1706 Washington Ave
St. Louis, MO 63103
314-231-1575 x6014
dbecker@cpicorp.com
PGP Key available from public key servers
Fingerprint: 1C34 D81E D8A0 641D 6C8C E952 3B15 693F 9184 BC58
----------------------------------------------------------------------